home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
ffccflow
/
ffccflow.lha
/
ffccc+flow
/
ffccc
/
SUPMOR.f
< prev
next >
Wrap
Text File
|
1992-07-31
|
1KB
|
38 lines
SUBROUTINE SUPMOR(SLIST,NACC,FLACC,IS,NS,NOUT)
*-----------------------------------------------------------------------
*
*--- suppresses multiple entries in sorted table, logically ORs NAMTYP
*
*--- input
* SLIST list containing all names
* NACC array to be re-arranged, and logically ORed
* FLACC if true, NACC is actually updated
* IS start-1 of table in SNAMES, /ALCAZA/
* NS length of table
*--- output
* NOUT new table length
*
*-----------------------------------------------------------------------
include 'PARAM.h'
CHARACTER *(MXNMCH) SLIST(*)
DIMENSION NACC(*)
LOGICAL FLACC
NQ=NS
IF (NQ.LE.0) THEN
NOUT=0
ELSE
NOUT=1
DO 10 I=2,NQ
IF (SLIST(IS+I).NE.SLIST(IS+NOUT)) THEN
NOUT=NOUT+1
IF (I.NE.NOUT) THEN
SLIST(IS+NOUT)=SLIST(IS+I)
IF(FLACC) NACC(IS+NOUT)=NACC(IS+I)
ENDIF
ELSEIF(FLACC) THEN
NACC(IS+NOUT)=IOR(NACC(IS+NOUT),NACC(IS+I))
ENDIF
10 CONTINUE
ENDIF
END